/**
 * 路由格式
   path: '/system/setting',
   // component: (resolve) => require(['../components/app/taskLog/TaskLogIndex.vue'], resolve), 组件
   component: () => import('../components/system/SystemIndex.vue'), 组件
   icon: 'el-icon-menu',
   title: '系统设置',
   name: "systemSetting",                     路由的唯一标识
   hidden: true                               不显示到菜单栏里
   permission: "system:user"                  需要权限  粗粒度
 **/
const systemRouters = [

  {
    path: '/appAdmin',
    component: () => import('../components/Layout.vue'),
    icon: 'el-icon-s-management',
    title: '应用管理',
    name: "appAdmin",
    children: [
      {
        path: '/app/address',
        component: () => import('../components/app/address/AddressIndex.vue'),
        icon: 'el-icon-s-operation',
        title: '寝室管理',
        name: "addressAdmin",
        permission: "system:address"
      },
      {
        path: '/app/student',
        component: () => import('../components/app/student/StudentIndex.vue'),
        icon: 'el-icon-user',
        title: '学生管理',
        name: "studentAdmin",
        permission: "system:student"
      },
      {
        path: '/app/worker',
        component: () => import('../components/app/worker/WorkerIndex.vue'),
        icon: 'el-icon-user-solid',
        title: '员工管理',
        name: "workerAdmin",
        permission: "system:worker"
      },
      {
        path: '/app/taskLog',
        component: () => import('../components/app/taskLog/TaskLogIndex.vue'),
        icon: 'el-icon-s-order',
        title: '送水记录',
        name: "taskLogAdmin",
        permission: "system:taskLog"
      },{
        path: '/app/ticketGoods',
        component: () => import('../components/app/ticketgoods/TicketGoodsIndex.vue'),
        icon: 'el-icon-s-order',
        title: '商品管理',
        name: "ticketGoodsAdmin",
        permission: "system:ticketGoods"
      },{
        path: '/app/ticketOrder/handle',
        component: () => import('../components/app/ticketorder/HandleOrderIndex.vue'),
        icon: 'el-icon-s-order',
        title: '购票处理',
        name: "ticketOrderHandle",
        permission: "system:ticketOrder"
      },{
        path: '/app/ticketOrder',
        component: () => import('../components/app/ticketorder/TicketOrderIndex.vue'),
        icon: 'el-icon-s-order',
        title: '历史订单',
        name: "ticketOrderAdmin",
        permission: "system:ticketOrder"
      }
    ]
  },
  {
    path: '/systemMonitor',
    component: () => import('../components/Layout.vue'),
    icon: 'el-icon-video-camera-solid',
    title: '系统监控',
    name: "systemMonitor",
    children: [
      {
        path: '/system/monitor/log/login',
        component: () => import('../components/system/monitor/LoginLogIndex.vue'),
        icon: 'el-icon-video-camera',
        title: '登录日志',
        name: "loginLogAdmin",
        permission: "system:loginLog"
      },
      {
        path: '/system/monitor/log/exception',
        component: () => import('../components/system/monitor/AdminLogIndex.vue'),
        icon: 'el-icon-message-solid',
        title: '操作日志',
        name: "adminLog",
        permission: "system:adminLog"
      }
    ]
  },
  {
    path: '/systemManage',
    component: () => import('../components/Layout.vue'),
    icon: 'el-icon-s-grid',
    title: '系统管理',
    name: "systemManage",
    children: [
      {
        path: '/system/manage/user',
        component: () => import('../components/system/manage/UserIndex.vue'),
        icon: 'el-icon-s-custom',
        title: '系统用户',
        name: "sysUser",
        permission: "system:sysUser"
      },
      {
        path: '/system/manage/role',
        component: () => import('../components/system/manage/RoleIndex.vue'),
        icon: 'el-icon-s-check',
        title: '角色管理',
        name: "roleAdmin",
        permission: "system:role"
      }
    ]
  }
]

export default systemRouters
